﻿@model Romantics.Domain.Objects.Hike
@using Romantics
@{
    var Action = ((string)ViewContext.RouteData.Values["Action"]);
    var Controller = ((string)ViewContext.RouteData.Values["Controller"]);
}
<div class="post">
    <div class="post-meta">
        <div class="row">
            <div class="post-title">
                <h2>@Html.HikeLink(Model)</h2>
            </div>
            <!-- AddThis -->
            <div class="share-links">
                @Html.Partial("_AddThis")
            </div>
        </div>
        <div class="row">
            <div class="post-category">
                <span>Катогория:&nbsp;</span>@Html.CategoryLink(Model.Category, Controller)
            </div>
            <div class="post-category">
                <span>Регион:&nbsp;</span>@Html.RegionLink(Model.Region, Controller)
            </div>
        </div>
        <!-- DISPLAY THE COMMENTS COUNT -->
        <div class="no-of-comments">
            <a href="@string.Format("{0}#disqus_thread", Model.Href(Url))" data-disqus-identifier="@string.Format("{0}", Model.Href(Url))"></a>
        </div>
        <div class="row">
            <span>Маршрут:&nbsp;</span>@Html.Raw(Model.Route)
        </div>
        <div class="posted-date">
            @{
                if (Model.Duration > 1)
                {
                <span>С&nbsp;</span>@Model.StartDate.ToString("d")<span>&nbsp;по&nbsp;</span>@Model.EndDate.ToString("d")
                }
                else
                {
                @Model.StartDate.ToString("d")
                }
            }
        </div>
    </div>
    <div class="post-body">
        @Html.Raw(Model.ShortDescription)
    </div>
    <div class="post-foot">
        @Html.ActionLink("Детали...", "Hike", "Hike", new { id = Model.ID }, new { title = "Детали..." })
    </div>
</div>
